Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p2p/discover: fix ENR filtering #2770

Merged
merged 3 commits into from
Nov 29, 2024
Merged

p2p/discover: fix ENR filtering #2770

merged 3 commits into from
Nov 29, 2024

Conversation

MatusKysel
Copy link
Contributor

@MatusKysel MatusKysel commented Nov 25, 2024

Description

Reintroducing ENR filtering back. This allows discv4 ENR filtering and add small support for discv5 that could be enabled later on based on testing.

@MatusKysel MatusKysel requested a review from buddh0 November 26, 2024 07:32
@MatusKysel MatusKysel marked this pull request as ready for review November 26, 2024 07:32
@MatusKysel MatusKysel force-pushed the fix-discovery branch 2 times, most recently from c276c8f to d54be9f Compare November 26, 2024 14:51
@MatusKysel MatusKysel marked this pull request as draft November 26, 2024 15:02
@zzzckck
Copy link
Collaborator

zzzckck commented Nov 27, 2024

may merge to develop branch now.

@MatusKysel MatusKysel marked this pull request as ready for review November 27, 2024 15:36
@MatusKysel MatusKysel changed the base branch from merge_geth_v1.13.15_v1.14.11 to develop November 27, 2024 15:36
@MatusKysel MatusKysel requested a review from zzzckck November 27, 2024 15:40
@Ali3219
Copy link

Ali3219 commented Nov 27, 2024

[email protected] سلام

@Ali3219
Copy link

Ali3219 commented Nov 27, 2024

0x08Dc6385204D434f0A407902eF6A271de0366912

@@ -493,15 +490,15 @@ func (tab *Table) bucketAtDistance(d int) *bucket {
}

//nolint:unused
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove //nolint:unused

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

buddh0
buddh0 previously approved these changes Nov 28, 2024
@zzzckck
Copy link
Collaborator

zzzckck commented Nov 28, 2024

this is the previous PR: #1320, for reference

tab.mutex.Unlock()
tab.addNodeHandled <- ok
go func() {
tab.addNodeHandled <- tab.handleAddNode(op)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't it be blocked? as there is no consumer for this channel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@zzzckck zzzckck merged commit e2f2111 into develop Nov 29, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants